﻿<%@ Page Language="C#" AutoEventWireup="true"  MasterPageFile="~/4SMasterPage.master"  CodeFile="workPlanView.aspx.cs" Inherits="workPlan" %>

<asp:Content ContentPlaceHolderID="ContentPlaceHolder2" ID="content1" runat="server">
    <div style="font-size:80%; width:90%">
    
        <asp:Label ID="Label1" runat="server" AssociatedControlID="GridView1" 
            Font-Size="X-Large" 
            style="font-family: 黑体; font-size: larger; font-weight: 700" 
            Text="工作安排表显示"></asp:Label>
    
        
        &nbsp;<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False">
            <Columns>
                <asp:BoundField DataField="PlanId" HeaderText="工作安排序列号" />
                <asp:BoundField DataField="OrderId" HeaderText="订单号" />
                <asp:TemplateField HeaderText="是否使用零件：">
               
                       
             
                    <ItemTemplate>
                     <%#Eval("Order.IsuseParts")%>  
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="使用的零件名称">
                    <ItemTemplate>
                     <%#Eval("Parts.PartsName")%>  
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="使用零件的数量">
                    <ItemTemplate>
                     <%#Eval("Parts.PartsNum")%>  
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="零件的价格">
                    <ItemTemplate>
                     <%#Eval("Parts.PartsPrice")%>  
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="是否使用机器">
                    <ItemTemplate>
                        <%#Eval("Order.IsuseMachine")%>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="机器名称">
                    <ItemTemplate>
                        <%#Eval("Machine.MachineName") %>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="RepairplaceId" HeaderText="厂房号" />
                <asp:BoundField DataField="UseTime" HeaderText="工时" />
            </Columns>
        </asp:GridView>
    
        <br />
    
    </div>
</asp:Content>
    

